<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
.disp{
  display: none;
}

</style>
<link rel="stylesheet" href="<%=basePath %>style/css/thickbox.css" type="text/css" media="screen"/>
<script type="text/javascript" src="<%=basePath %>js/jquery126.js"></script>
<script type="text/javascript" src="<%=basePath %>js/thickbox.js"></script>
	<script type="text/javascript">
	
	       $(function(){
	       
				$("#search").click(function(){
				$("#myForm").attr("action","Guost.my");	
				$("#myForm").submit();
			    });
			    $("#next").click(function(){
				$("#myForm").attr("action","Guost.my");	
				if ($("#currPage").val()==${Guost.page.maxPage}){
				   alert("已经到最末页！");
				}else{
				$("#currPage").val($("#next").attr("page"));
				}
				$("#myForm").submit();
			    });
			    $("#pre").click(function(){
				$("#myForm").attr("action","Guost.my");	
				if ($("#currPage").val()==1){
				   alert("已经到第一页！");
				}else{
				$("#currPage").val($("#pre").attr("page"));
				}
				$("#myForm").submit();
			    });
			    
			    $("#gotoPage").click(function(){
				$("#myForm").attr("action","Guost.my");	
				$("#currPage").val($("#toPage").val());
				$("#myForm").submit();
			    });
			    $("#first").click(function(){
				$("#myForm").attr("action","Guost.my");	
				if ($("#currPage").val()==1){
				   alert("已经到第一页！");
				}else{
				   $("#currPage").val(1);
				}
				$("#myForm").submit();
			    });
			    $("#last").click(function(){
				$("#myForm").attr("action","Guost.my");	
				if ($("#currPage").val()==${Guost.page.maxPage}){
				   alert("已经到最末页！");
				}else{
				   $("#currPage").val(${Guost.page.maxPage});
				}
				$("#myForm").submit();
			    });
			 
			  $(".edit").click(function(){
	         
	          $("#to_id").val($(this).parent().find(".idval").val());
	          $("#myForm").attr("action","Guost!edit.my");
	          $("#myForm").submit();
	          });
	          
	          $(".delete").click(function(){
	          if (confirm("删除该条记录？")){
	          $("#to_id").val($(this).parent().find(".idval").val());
	          $("#myForm").attr("action","Guost!delete.my");
	          $("#myForm").submit();}
	          });
	          
	          
	          $(".view_more").click(function(){	         
	          $(this).parent().find(".disp").attr("id","myOnPageContent");
	          $(this).parent().find(".thickbox").click();	      
	          });
			  
			  
			  
			
			
			
			});
	
	
	</script>
	
	</head>

	<body>
	<form id="myForm" action="" method="post">
	
	


	<input type="hidden" name="to_id" value="0" id="to_id"/>
	<input name="currPage" type="hidden" id="currPage" value="${Guost.page.currPage}" />
	
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="<%=basePath %>admin/tab/images/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="<%=basePath %>admin/tab/images/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="<%=basePath %>admin/tab/images/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[业务中心]-[我的邮件]
													</td>
												</tr>
											</table>
										</td>
										
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
												    <td width="30">
														<table width="50" border="0" cellpadding="0"
															cellspacing="0" height="25">
															<tr>
																<td class="STYLE1">
																	<div align="center">
																	   <b>content:</b>
																	</div>
																</td>
															
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="107" border="0" cellpadding="0"
															cellspacing="0" height="25">
															<tr>
																<td class="STYLE1">
																	<div align="center">
																	   
																		<input name="content" value="${param['content']}" />
																	</div>
																</td>
															
															</tr>
														</table>
													</td>
													
													
													
												
													<td width="52">
														<table width="88%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1">
																	<div align="center">
																		<input type="submit" value="查询" id="search" />
																	</div>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="<%=basePath %>admin/tab/images/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="<%=basePath %>admin/tab/images/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<table width="100%" border="0" cellpadding="0" cellspacing="1"
									bgcolor="b5d6e6">
									<tr>
										<td width="3%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<input type="checkbox" value="checkbox" />
											</div>
										</td>
										<td width="3%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">序号</span>
											</div>
										</td>
										<td width="12%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">feedback_id</span>
											</div>
										</td>
										<td width="14%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">student_id</span>
											</div>
										</td>
										<td width="18%" background="<%=basePath %>admin/tab/images/bg.gif" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">feedback_person _id</span>
											</div>
										</td>
										<td width="23%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">content</span>
											</div>
										</td>
										<td width="15%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF" class="STYLE1">
											<div align="center">
												基本操作
											</div>
										</td>
										<td width="15%" height="22" background="<%=basePath %>admin/tab/images/bg.gif"
											bgcolor="#FFFFFF" class="STYLE1">
											<div align="center">
												基本操作
											</div>
										</td>
									</tr>
									
									<c:forEach items="${Guost.page.list}" var="m">
									
									<tr>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<input type="checkbox" value="checkbox" />
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center" class="STYLE1">
												<div align="center">
													01
												</div>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${m.feedbackId}</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${m.misonStudent.studentId}</span>
											</div>
										</td>
										<td bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${m.misonFeedbackPerson.feedbackPersonId}</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${fn:substring(m.content,0,20)}...
												     <div  class="disp">
												     	        <p>${m.content}</p>
												     	        <p><button onclick="tb_remove()">确定</button></p>
												     	        
												     	        </div>
												     <a href="#TB_inline?height=155&width=300&inlineId=myOnPageContent&modal=true" 
												     class="thickbox" ></a><a href="#" class="view_more">详细</a>
												     											
												</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE4"><img src="<%=basePath %>admin/tab/images/edt.gif"
														width="16" height="16" /><input type="hidden" value="${m.feedbackId}" class="idval"/>
														<a href="#" class="edit">编辑</a>

																										
														<img src="<%=basePath %>admin/tab/images/del.gif" width="16" height="16" />
														<a href="#" class="delete">删除</a>
														</span>
											</div>
										</td>
									</tr>
									</c:forEach>									
								</table>
							</td>
							<td width="8" background="<%=basePath %>admin/tab/images/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="<%=basePath %>admin/tab/images/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="<%=basePath %>admin/tab/images/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="STYLE4">
											&nbsp;&nbsp;共有 ${Guost.page.totalCount } 条记录，当前第 ${Guost.page.currPage }/${Guost.page.maxPage } 页
										</td>
										<td>
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="40">
														<img src="<%=basePath %>admin/tab/images/first.gif" width="37" height="15" id="first"/>
													</td>
													<td width="45">
														<img src="<%=basePath %>admin/tab/images/back.gif" width="43" height="15" id="pre" page="${Guost.page.prePage}"/>
													</td>
													<td width="45">
														<img src="<%=basePath %>admin/tab/images/next.gif" width="43" height="15" id="next" page="${Guost.page.nextPage}"/>
													</td>
													<td width="40">
														<img src="<%=basePath %>admin/tab/images/last.gif" width="37" height="15" id="last" />
													</td>
													<td width="100">
														<div align="center">
															<span class="STYLE1">转到第 <input id="toPage" type="text" size="4"
																	style="height:12px; width:20px; border:1px solid #999999;" value="1"/>
																页 </span>
														</div>
													</td>
													<td width="40">
														<img src="<%=basePath %>admin/tab/images/go.gif" width="37" height="15" id="gotoPage"/>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="<%=basePath %>admin/tab/images/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		</form>
	</body>
</html>